/**
 * <b>项目名：</b>hclv-web<br/>  
 * <b>包名：</b>com.flea.hclv.service.impl<br/>  
 * <b>文件名：</b>HHotelService.java<br/>  
 * <b>版本信息：</b>1.0<br/>  
 * <b>日期：</b>2018年9月12日 下午3:49:02<br/>  
 * <b>COPYRIGHT 2010-2012 ALL RIGHTS RESERVED 虫子科技</b>-版权所有<br/>
 */
package com.flea.hclv.service;

import com.flea.hclv.model.entity.HTimeTable;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @description
 * @createTime 2018年9月12日 下午3:49:02
 * @modifyTime
 * @author myflea@163.com
 * @version 1.0
 */
public interface HTimeTableService {
	
	public List<HTimeTable> getByProductId(String productId);
	
	public boolean save(List<HTimeTable> timetables);

	public ServerResponse saveBatch(String model, HttpServletRequest request) throws Exception;

	public boolean deleteByProductIds(List<String> productIds, String userId) throws Exception;

  ServerResponse updateTimeTable(String model, HttpServletRequest request)throws Exception;

  ServerResponse deleteById(String model, HttpServletRequest request)throws Exception;

  ServerResponse<FleaPage<HTimeTable>> getByProductIdPaging(String productId, int curPage, int pageSize)throws Exception;

  ServerResponse deleteByIds(String model, HttpServletRequest request)throws Exception;

  boolean updateTimeTableRestSub(String timeTableId, int personNum,String userId) throws Exception;
}
